<template>
 <div class="site-aside-container">
     <template v-if="data">
         <div class="avatar">
         <Avatar :url= 'data.avatar'></Avatar>
     </div>
     <h1 class="title">{{data.siteTitle}}</h1>
     </template>
     
      <Menu  ></Menu>
     <Contact v-if="data"></Contact>
    <p v-if="data" class="text" >{{data.icp}}</p>
 </div>
</template>

<script>

import Avatar from '../Avatar/index.vue';
import Contact from './Contact/index.vue';
import Menu from './Menu/index.vue';
import { mapState } from 'vuex';
export default {
    components: { Avatar, Contact, Menu },
    computed:mapState('setting',['loading','data']),
   
    }

</script>

<style lang="less" scoped>
@import "../../style/var.less";
.site-aside-container{
    width: 100%;
    height: 100%;
    padding :20px 5px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
   .title{
       font-size: 1.5em;
       color: #FFF;
       text-align: center;
       margin: 5px;
   }
   .avatar{
    text-align:center;
      margin-top: 10px;
        
    }
    .text{
    text-align:center;
    color: @lightWords;
    font-size: 12px;
    }
}
</style>